import sign


def test_sign():
    params = {
        "TimeStamp": "2016-02-23T12:46:24Z",
        "Format": "XML",
        "AccessKeyId": "testid",
        "Action": "DescribeRegions",
        "SignatureMethod": "HMAC-SHA1",
        "SignatureNonce": "3ee8c1b8-83d3-44af-a94f-4e0ad82fd6cf",
        "Version": "2014-05-26",
        "SignatureVersion": "1.0",
    }

    accessKeySecret = 'testsecret'   # noqa

    assert sign.get_sign(params, accessKeySecret) == 'CT9X0VtwR86fNWSnsc6v8YGOjuE='
